<?

$mapper = Mozg_Mapper::Get('Structure');

$elements = array();
if ($this->cid)
{
    $id = $this->cid;
    while ($elem = $mapper->GetOne(array('id' => $id)))
    {
        $elements[] = '<a href="' . htmlspecialchars(Mozg::Router('http')->Create('module=admin&ctrl=structure&action=list&cat=' .$id)) . '">' . $elem->GetName() . '</a>';
        $id = $elem->GetParentId();
    }
}
echo implode(' / ', array_reverse($elements));
?>